package com.rainy.sso.client.service;
import com.rainy.sso.client.entity.Permission;
import com.rainy.sso.client.entity.User;
import java.util.List;

/**
 * @author liuqin on 2017-12-21 14:26:10
 */
public interface UserService {

    List<User> list(Long offset, Long limit);

    Long count(Long offset, Long limit);

    User getUserById(Long id);

    void update(User entity);

    void save(User entity);

    void delete(Long id);

    List<String> getPermissionsByUserName();

    User queryUserByUserName(String username);

    User queryUserInfo(String username);

}